
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author S3157015
 */
public class ReversiSprite extends Sprite {

    private Image image;
    private int width;
    private int height;

    public ReversiSprite(Image image, int frameWidth, int frameHeight) {
        super(image, frameWidth, frameHeight);
        this.image = image;
        this.height = frameHeight;
        this.width = frameWidth;
        
    }

    public void  getWhite(){
        setFrame(1);
    }

    public void getBlack(){
        setFrame(0);
    }

    public void blackChangeToWhite(){
        int sequence[] = {1,0,1};
        setFrameSequence(sequence);
    }

    public void whiteChangeToBlack(){
        int sequence[] = {0,1,0};
        setFrameSequence(sequence);
    }
}
